package com.petrooil.utils;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class SysListUtils {

    public static String listToString (List<String> list) {
        return list != null ? list.toString().replaceAll("[\\[\\] ]", "") : "";
    }

    public static List<String> stringToList (String str) {
        return str != null ? Arrays.asList(str.split(",")) : new ArrayList<String>();
    }
    
}
